<?php use_javascript("prototype.js");
      use_javascript("cambioPass.js");      
      use_stylesheet('/sfDoctrinePlugin/css/global.css', 'first'); 
      use_stylesheet('/sfDoctrinePlugin/css/default.css', 'first'); ?>

<div class="seccion"><h2>Cambiar password</h2></div>
<div id="sf_admin_container">

        <?php if ($sf_user->hasFlash('mensaje')): ?>
          <div class="notice">
            <?php echo $sf_user->getFlash('mensaje') ?>
          </div>
        <?php endif ?>
        <?php if ($sf_user->hasFlash('error')): ?>
          <div class="error">
            <?php echo $sf_user->getFlash('error') ?>
          </div>
        <?php endif ?>

<div id="sf_admin_form">
<form id="formCambioPass"
      action="<?php echo url_for('change_password')?>"
      method="post"
      onsubmit="return validar()">
    <fieldset>
        <div class="sf_admin_form_row">
            <label for="txtContrasegnaActual">Contraseña Actual: </label>
            <input name="txtContrasegnaActual" id="txtContrasegnaActual" type="password" maxlength="15"/>
        </div>

        <div class="sf_admin_form_row">
            <label for="txtContrasegnaNueva">Contraseña Nueva: </label>
            <input name="txtContrasegnaNueva" id="txtContrasegnaNueva" type="password" maxlength="15"/>
        </div>

        <div class="sf_admin_form_row">
            <label for="txtContrasegnaConfirmada">Reingrese: </label>
            <input name="txtContrasegnaConfirmada" id="txtContrasegnaConfirmada" type="password" maxlength="15"/>
        </div>


        <input type="reset" value="Cancelar" />
        <input type="submit" value="Registrar" />
    </fieldset>
</form>
</div>
</div>
